Channel Logo
conda-forge
public
A community led collection of recipes, build infrastructure and distributions for the conda package manager.
requests-oauthlib
v2.0.0
OAuthlib authentication support for Requests.

Requests-OAuthlib

This project provides first-class OAuth library support for Requests.

The OAuth 1 workflow

OAuth 1 can seem overly complicated and it sure has its quirks. Luckily, requests_oauthlib hides most of these and let you focus at the task at hand.

Accessing protected resources using requests_oauthlib is as simple as:

>>> from requests_oauthlib import OAuth1Session
>>> twitter = OAuth1Session('client_key',
                            client_secret='client_secret',
                            resource_owner_key='resource_owner_key',
                            resource_owner_secret='resource_owner_secret')
>>> url = 'https://api.twitter.com/1/account/settings.json'
>>> r = twitter.get(url)

Before accessing resources you will need to obtain a few credentials from your provider (e.g. Twitter) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full OAuth 1 workflow guide on RTD

The OAuth 2 workflow

OAuth 2 is generally simpler than OAuth 1 but comes in more flavours. The most common being the Authorization Code Grant, also known as the WebApplication flow.

Fetching a protected resource after obtaining an access token can be extremely simple. However, before accessing resources you will need to obtain a few credentials from your provider (e.g. Google) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full OAuth 2 workflow guide on RTD.

Install

pixiaddrequests-oauthlib

Version

2.0.0

Platforms

noarch

Last published

3 months ago
Retrieving Pull Requests...
Package Variants
filenameversionbuild
CreatedsizeArchitecture
requests-oauthlib-2.0.0-pyhd8ed1ab_1.conda
2.0.0
pyhd8ed1ab_1 (1)
3 months ago
25.27 KB
noarch
requests-oauthlib-2.0.0-pyhd8ed1ab_0.conda
2.0.0
pyhd8ed1ab_0 (0)
a year ago
25.14 KB
noarch
requests-oauthlib-1.4.0-pyhd8ed1ab_0.conda
1.4.0
pyhd8ed1ab_0 (0)
a year ago
25.15 KB
noarch
requests-oauthlib-1.3.1-pyhd8ed1ab_0.tar.bz2
1.3.1
pyhd8ed1ab_0 (0)
3 years ago
21.67 KB
noarch
requests-oauthlib-1.3.0-pyh9f0ad1d_0.tar.bz2
1.3.0
pyh9f0ad1d_0 (0)
5 years ago
20.88 KB
noarch
requests-oauthlib-1.2.0-pyh9f0ad1d_1.tar.bz2
1.2.0
pyh9f0ad1d_1 (1)
5 years ago
19.79 KB
noarch
requests-oauthlib-1.2.0-py_0.tar.bz2
1.2.0
py_0 (0)
6 years ago
19.29 KB
noarch
requests-oauthlib-1.1.0-pyh9f0ad1d_0.tar.bz2
1.1.0
pyh9f0ad1d_0 (0)
5 years ago
19.55 KB
noarch
requests-oauthlib-1.0.0-py_1.tar.bz2
1.0.0
py_1 (1)
7 years ago
16.95 KB
noarch
requests-oauthlib-1.0.0-py35_0.tar.bz2
1.0.0
py35_0 (0)
2 years ago
27.32 KB
win-64
requests-oauthlib-1.0.0-py36_0.tar.bz2
1.0.0
py36_0 (0)
2 years ago
27.27 KB
linux-64
requests-oauthlib-1.0.0-py36_0.tar.bz2
1.0.0
py36_0 (0)
2 years ago
27.32 KB
win-64
requests-oauthlib-1.0.0-py27_0.tar.bz2
1.0.0
py27_0 (0)
2 years ago
26.95 KB
linux-64
requests-oauthlib-1.0.0-py27_0.tar.bz2
1.0.0
py27_0 (0)
2 years ago
26.98 KB
win-64
requests-oauthlib-1.0.0-py35_0.tar.bz2
1.0.0
py35_0 (0)
2 years ago
27.31 KB
linux-64
requests-oauthlib-1.0.0-py35_0.tar.bz2
1.0.0
py35_0 (0)
2 years ago
27.52 KB
osx-64
requests-oauthlib-1.0.0-py36_0.tar.bz2
1.0.0
py36_0 (0)
2 years ago
27.49 KB
osx-64
requests-oauthlib-1.0.0-py27_0.tar.bz2
1.0.0
py27_0 (0)
2 years ago
27.1 KB
osx-64
requests-oauthlib-0.8.0-py36_1.tar.bz2
0.8.0
py36_1 (1)
2 years ago
25.86 KB
osx-64
requests-oauthlib-0.8.0-py35_1.tar.bz2
0.8.0
py35_1 (1)
2 years ago
25.91 KB
osx-64